function getindexlist(type)
{
	var web_info = $("#web_info").val();
	var web_type = $("#web_type").val();
	if(type == 'index_product')
	{
		var h_product_str_id = $("#h_product_str_id").val();
		jIframe('', '所有'+web_info+'产品列表', {
		width: 850,
		height: 345,
		src: './products.php?action=index&type=1&product_list='+h_product_str_id+'&web_type='+web_type,
		ID: 'all_product',
		box_btn:true,
		callback:get_products_info
		});
	}else if(type == 'index_category')
	{
		var h_category_str_id = $("#h_category_str_id").val();
		jIframe('', '所有FAQ分类列表', {
		width: 720,
		height: 300,
		src: './faq_index.php?action=category_list&category_str_list='+h_category_str_id,
		ID: 'all_category',
		box_btn:true,
		callback:get_categorys_info
		});
	}
}

function get_products_info()
{
	var id = document.getElementById("all_product").contentWindow.get_checked_product();
	var name = document.getElementById("all_product").contentWindow.get_checked_product_name();
	$("#product_str_id").val(name);
	$("#h_product_str_id").val(id);
	jClose();
}

function get_categorys_info()
{
	var id = document.getElementById("all_category").contentWindow.get_checked_category();
	var name = document.getElementById("all_category").contentWindow.get_checked_category_name();
	$("#category_str_id").val(name);
	$("#h_category_str_id").val(id);
	jClose();
}


